package com.jy.rhin.model.body.jiankangtj;


import com.jy.rhin.infra.cda.EDataElement;
import com.jy.rhin.infra.cda.XPath;
import com.jy.rhin.infra.cda.XValid;
import com.jy.rhin.model.CodeObject;
import lombok.Data;

/**
 * 职业暴露史章节
 * @author shenguangyang
 */
@Data
public class ZhiYeBLS {
    /** 职业暴露标志代码 */
    @XPath(model = "code",
            codePath = "/code[@code='DE03.00.089.00'][@codeSystem='2.16.156.10011.2.2.1']",
            path = "/value/@value", xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE03_00_089_00))
    String zhiYeBLBZ;

    /** 从事有危害因素工种 */
    @XPath(model = "code",
            codePath = "/entryRelationship/observation/code[@code='DE03.00.083.00'][@codeSystem='2.16.156.10011.2.2.1']",
            path = "/value/text()", xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE03_00_083_00))
    String congShiYWHYSGZ;

    /** 从事有危害因素职业时长（年） */
    @XPath(model = "code",
            codePath = "/entryRelationship/observation/code[@code='DE03.00.007.00'][@codeSystem='2.16.156.10011.2.2.1']",
            path = "/value/@value", xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE03_00_007_00))
    String congShiYWHYSCYSJ;

    /** 职业暴露危险因素种类代码 */
    @XPath(path = "/entryRelationship/observation/code[@code='DE03.00.091.00'][@codeSystem='2.16.156.10011.2.2.1']/../value",
            xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE03_00_091_00))
    CodeObject zhiYeBLWXYSZLDM;

    /** 职业暴露危险因素名称 */
    @XPath(model = "code",
            codePath = "/entryRelationship/observation/code[@code='DE03.00.090.00'][@codeSystem='2.16.156.10011.2.2.1']",
            path = "/value/text()", xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE03_00_090_00))
    String zhiYeBLWXYSMC;

    /** 职业防护措施标志, true / false */
    @XPath(model = "code",
            codePath = "/entryRelationship/observation/code[@code='DE03.00.094.00'][@codeSystem='2.16.156.10011.2.2.1']",
            path = "/value/@value", xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE03_00_094_00))
    String zhiYeFHCSBZ;
}
